<script src="/js/friends.js" type="text/javascript"></script>

{include_view view=user_info authUser=$authUser}

<div id="result">Загружается список друзей...</div>

<table id="friends" class="tablesorter" style="display: none">
    <thead>
        <tr>
            <th>UID</th>
            <th>Имя</th>
            <th>Возраст</th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>

{literal}
<!-- Row template to fill friends table -->
<script id="friendTemplate" type="text/jst">
    {for friend in result}
    <tr>
        <td>${friend.id}</td>
        <td><a href="${friend.profile_url}" target="_blank">${friend.name}</a></td>
        <td>{if friend.age}${friend.age}{else}не указан{/if}</td>
    </tr>
    {/for}
</script>
{/literal}